/*******************************************************************************
 * Copyright (c) 2011 UCLA Medical Imaging Informatics Group
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 ******************************************************************************/
package imageviewer.model.raw;

import java.util.ArrayList;

import imageviewer.model.Image;
import imageviewer.model.ImageSequence;

// =======================================================================

public class RawImageSeries extends ImageSequence {

	public RawImageSeries(Image[] imageArray) {for (int loop=0; loop<imageArray.length; loop++) sequence.add(imageArray[loop]); initialize();} 
	public RawImageSeries(ArrayList images) {sequence=images; initialize();}

	private void initialize() {setProperty(NUMBER_IMAGES,new Double(sequence.size())); registerModel();}

	public Object getDependentKey() {return this;}
	public Object getClosingKey() {return null;}
}
